/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 */
package com.joolun.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 报名
 */
@Data
@TableName("tb_apply")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "报名")
public class Apply extends Model<Apply> {
private static final long serialVersionUID = 1L;

    /**
   * PK
   */
	@ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private String id;

	@ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signTime;

    @ApiModelProperty(value = "签退时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime outTime;

    @ApiModelProperty(value = "志愿活动id")
    private Integer wishId;
    /**
   * 创建时间
   */
	@ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String wishTitle;
    @TableField(exist = false)
    private Integer signFlag;

    @ApiModelProperty(value = "志愿标题")
    @TableField(exist = false)
    private String title;
    @ApiModelProperty(value = "志愿图片")
    @TableField(exist = false)
    private String pic;
    @ApiModelProperty(value = "签到时间")
    @TableField(exist = false)
    private String startTime;
    @ApiModelProperty(value = "签退时间")
    @TableField(exist = false)
    private String endTime;
    @ApiModelProperty(value = "志愿地址")
    @TableField(exist = false)
    private String address;
    @ApiModelProperty(value = "活动积分")
    @TableField(exist = false)
    private Integer integral;
}
